package com.atmaowei.mapper;

import com.atmaowei.controller.request.BaseRequest;
import com.atmaowei.entity.Department;
import com.atmaowei.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentMapper {

    public void save(Student student);

    List<Student> page(BaseRequest baseRequest);

    void delete(String sno);

    void update(@Param("student") Student student,@Param("oldSno") String oldSno);

    Student getBySno(String sno);

    List<Department> getAllDept();

    void deleteSelected(String sno);

    void statusChange(String sno,String status);
}
